package com.lesso.lpq.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.lpq.sunflower.domain.service.EmployeeAttendanceRuleDomainService;
import com.lesso.lpq.sunflower.pojo.dto.EmployeeAttendanceRuleDTO;
import com.lesso.lpq.sunflower.pojo.dto.EmployeeAttendanceRuleQueryDTO;
import com.lesso.lpq.sunflower.pojo.vo.DeviceVO;
import com.lesso.lpq.sunflower.pojo.vo.EmployeeAttendanceRuleVO;
import com.lesso.lpq.sunflower.service.IEmployeeAttendanceRuleService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 员工考勤规则关系表 服务实现类
 * </p>
 *
 * @author lpq
 * @since 2025-07-05
 */
@Service
@DubboService
public class EmployeeAttendanceRuleServiceImpl implements IEmployeeAttendanceRuleService {
    private final EmployeeAttendanceRuleDomainService domainService;

    public EmployeeAttendanceRuleServiceImpl(EmployeeAttendanceRuleDomainService service) {
        this.domainService = service;
    }

    @Override
    public Long save(EmployeeAttendanceRuleDTO dto) {
        return domainService.save(dto);
    }

    @Override
    public Page<EmployeeAttendanceRuleVO> page(EmployeeAttendanceRuleQueryDTO dto) {
        return domainService.page(dto);
    }

    @Override
    public void update(EmployeeAttendanceRuleDTO dto) {
        domainService.update(dto);
    }

    @Override
    public Page<EmployeeAttendanceRuleVO> customPage(EmployeeAttendanceRuleQueryDTO dto) {
        return domainService.customPage(dto);
    }

    @Override
    public void deleteById(Long id) {
        domainService.deleteById(id);
    }

    @Override
    public EmployeeAttendanceRuleVO getByEmployeeId(String employeeId) {
        return domainService.getByEmployeeId(employeeId);
    }
}